package com.lej.dataservice.club.bean.upgrade

data class UpgradeInfo(
    val version: String?,
    val version_code: String?,
    val name: String?,
    val content: String?,
    val url: String?,
    //0未知版本 1已经是最新版本 2非强制更新版本 3强制更新版本
    val force_update: Int
){
    override fun toString(): String {
        return "UpgradeInfo(version=$version, version_code=$version_code, name=$name, content=$content, url=$url, type=$force_update)"
    }

    fun isForce() = force_update == 3
    /**是否已经是最新版本*/
    fun isNew() = force_update == 1
}